64bit regression fixed, and applied apr CFLAGS to stomp example

These changes enable and has been tested with stomp endpoint of activemq 
example run:

    Connecting......OK
    Sending connect message.OK
    Reading Response.Response: CONNECTED, 
    OK
    Sending Subscribe.OK
    Sending Message.OK
    Reading Response.Response: MESSAGE, This is the message
    OK
    Sending Disconnect.OK
    Disconnecting...OK