core: compability with gcc-4.6
core: include curl
FSM: move implementation to separate file
core: including asprintf2 implementation

instead of pulling it from libportable
core: using {,v}asprintf2
core: dropping libportable requirement
FSM: fixing some warnings
Merge branch 'drop_libportable'